Feature: 免费咨询的生命周期
  作为一个律师用户
  我可以争抢和处理用户提出的免费咨询
  这样我可以得到帮助用户和拓展商业机会
  
Background:
Given http "accept" header is "application/json"
  And I make a "post" request to "login" with:
  | username    | password   |
  | 13702325512 | 123456   |
  And the response is in "json" format
  And http "authorization" header exists

Scenario: 律师用户可以抢单推送给他的咨询
Given lawyer with phone "13702325512" has workscope "304,322,356"
And there is a "question" request with status "new"
And there is a request with category "322"
When I "take" this request with route "center.question.to_take"
Then the response status code should be 200
And the status of the request is "replied"

Scenario: 律师用户可以删除已完成的咨询
When there is a "question" request with status "complete"
And I "cancel" this request with route "center.question.to_remove"
Then the response status code should be 200
And the status of the request is "removed"

Scenario: 律师用户可以获得咨询律师的及时通信的信息
When there is a "question" request with status "replied"
And I "ask" this request with route "center.question.to_ask"
Then the response status code should be 200
And the status of the request is "replied"
And the response is in "json" format
# TODO: check the data returned


#Scenario: 律师用户可以接受指定给他的咨询
#Scenario: 律师用户可以拒绝指定给他的咨询
